﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OOP
{
    class Program
    {
        static void Main(string[] args)
        {
            //PersonTest();
            StudentTest();
            
            Console.ReadKey();
        }

        static void StudentTest()
        {
            Student bob = new Student();
            bob.FirstName = "Bob";
            bob.LastName = "Marley";
            bob.PhoneNumber = "099999999";

            Console.WriteLine(bob.Email.ToUpper());

            bob.Email = "bob@marley.com";
            
            Student alice = new Student("Alice", "Ofwonderland");

        }

        static void PersonTest()
        {
            Person p = new Person();
            p.BornYear = 1980;
            Console.WriteLine(p.BornYear);
            Console.WriteLine(p.GetAge());
            //Console.WriteLine(p.Age);

            p.FirstName = "John";
            Console.WriteLine(p.FirstName);

            p.GetFirstName();
            p.SetFirstName("John");

            p.LastName = "Smith";
            Console.WriteLine(p.LastName); 
        }
    }
}
